﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Application.Services.Dto;
using TongTongMall.Common.AutoMapper;
using TongTongMall.Runtime.Session;

namespace TongTongMall.MallWeb.Core
{
    [AutoMapFrom(typeof(TongTongMallSession))]
    public class SessionInfoDto : IDto
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public long? UserID { get; set; }

        /// <summary>
        /// 租户ID，客户端标示
        /// </summary>
        public long? TenantID { get; set; }

        /// <summary>
        /// 租户名称
        /// </summary>
        public string TenantName { get; set; }

        /// <summary>
        /// 登录用户，授权时的用户名
        /// 匿名用户名，系统自动生成
        /// </summary>
        public string UserName { get; set; }
    }
}
